<%form_remote_for :permission,:url=>{:action=>'create_from_sidebar'} do |f|%>
<span class="float_right admin" id="edit_item_action_<%=@role.id%>">
<%=submit_tag "save".t,
:onclick=>"Element.show('indicator_#{@role.id}');Element.hide('edit_item_action_#{@role.id}')",
:id=>"submit_tag",:style=>'width:40px'
%>
or 
<a href="#" onclick="new Ajax.Request('/permission/cancel_new/?project_id=<%=params[:project_id]%>',{asynchronous:true,evalScripts:true});Element.hide('edit_item_action_<%=@role.id%>');Element.show('indicator_<%=@role.id%>');">
<%="Cancel".t%></a>
</span>
<span class=float_right><%=indicator(@role.id)%></span>
<%=f.text_field "name",:size=>"16"%>
<%=f.hidden_field "project_id",:value=>params[:project_id]%>
<%=f.hidden_field "label",:value=>params[:label]%>
<%end%>
